<?php
!defined ('P_W') && exit('Forbidden');
/**
 * 
 * 二手房之出售房DB类
 * @author hu.liaoh
 *
 */						
House::loadDB('house_second','',false);
class PW_House_SecondSaleDB  extends PW_House_SecondDB{

	var $_primaryKey  = 'houseid';
	var $_saleInfo = 'pw_house_saleinfo';
	var $_overdueTable = 'pw_house_saleoverdue';
	var $_msyqlSort         = "DESC";
	var $_sortTypes         = array();
	var $_sortFields        = array();

	function PW_House_SecondSaleDB(){
		parent::PW_House_SecondDB();
		$this->_allowIndexFields = array('areatype','platetype','pricetype','acreagetype','roomtype','housetype'); //允许索引的字段
		$this->_sortFieldTables = array('price'=>'pw_house_saleprice_index', 'unitprice'=>'pw_house_saleunitprice_index', 'posttime'=>'pw_house_saleposttime_index', 'modifytime'=>'pw_house_salemodifytime_index'); //允许排序的字段及与之对应的索引表
		$this->_expandFields = array('equal'=>array('istop','isurgent','uid','username','isbroker','state'),'like'=>array()); //后台扩展的字段
	}
}